package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 联系客服业务对象 p_server
 *
 * @author ruoyi
 * @date 2022-07-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("联系客服业务对象")
public class PServerBo extends BaseEntity {

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 接收人
     */
    @ApiModelProperty(value = "接收人", required = true)
    @NotNull(message = "接收人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long toUserId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    @NotNull(message = "用户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容", required = true)
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String msg;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片", required = true)
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pic;


}
